package com.zhdl.modules.common.warn.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.modules.common.warn.entity.WarnRecords;
import org.springframework.data.jpa.repository.Query;

public interface WarnRecordsDao extends BaseRepository<WarnRecords, String> {

    @Query(value = "select wr from WarnRecords wr where wr.warnAddress = :warnAddress and wr.operationType = :operationType ")
    WarnRecords findByWarnAddress(String warnAddress, String operationType);
}
